package com.thoughtworks.config;

import com.thoughtworks.ApplicationStub;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;

/**
 * Created by yrzhang on 10/9/16.
 */
@Configuration
@ComponentScan(basePackageClasses = ApplicationStub.class)
@PropertySource("classpath:persistence.properties")
public class ApplicationConfig {

    @Bean
    public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
        return new PropertySourcesPlaceholderConfigurer();
    }
}
